﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminSite/AdminSite.Master" AutoEventWireup="true"
    CodeBehind="AddInsuranceType.aspx.cs" Inherits="InsuranceVehicle.AdminSite.AddInsuranceType" %>

<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="pageTitle" runat="server">
    Add Insurance Type
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="menuPlace" runat="server">
    <uc1:Menu ID="Menu1" runat="server" SelectedMenu="add_insurance" ShowElement="all" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="breadCrumb" runat="server">
    Add Insurance Type
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="titleContent" runat="server">
    Add Insurance Type
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="mainContent" runat="server">
    <div class="contentinner">
        <h4 class="widgettitle nomargin shadowed">
            Enter your Infomation</h4>
        <div class="widgetcontent bordered shadowed nopadding">
            <div class="stdform stdform2">
                <p>
                    <label>
                        Insurance Name</label>
                    <span class="field">
                        <asp:TextBox ID="txtInsuName" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please enter the Insurance name"
                            ControlToValidate="txtInsuName" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                            SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Description<small>Enter some description of Insurance here</small></label>
                    <span class="field">
                        <%--<asp:TextBox ID="txtInsuDescription" runat="server" TextMode="MultiLine" Width="270px"></asp:TextBox>--%>
                        <CKEditor:CKEditorControl ID="txtInsuDescription" runat="server"></CKEditor:CKEditorControl>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please, enter some description"
                            ControlToValidate="txtInsuDescription" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                            SetFocusOnError="True"></asp:RequiredFieldValidator>
                    </span>
                </p>
                <p>
                    <label>
                        Unit Price<small>With 1 year</small></label>
                    <span class="field">
                        <asp:TextBox ID="txtUnitPrice" CssClass="input-xlarge" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please, enter the Unit price"
                            ControlToValidate="txtUnitPrice" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                            SetFocusOnError="True"></asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Unit price must be a number"
                            ControlToValidate="txtUnitPrice" Display="Dynamic" Font-Italic="True" ForeColor="Red"
                            SetFocusOnError="True" ValidationExpression="^[0-9]+$"></asp:RegularExpressionValidator>
                    </span>
                </p>
                <p class="stdformbutton">
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" class="btn btn-primary" Width="100px"
                        CausesValidation="true" OnClick="btnSubmit_Click" />
                    <asp:Button ID="btnReset" runat="server" Text="Reset" class="btn" Width="100px" CausesValidation="False"
                        OnClick="btnReset_Click" />
                </p>
            </div>
        </div>
    </div>
</asp:Content>
